package com.chang.common.resultcode;

/**
 * 短信平台响应码
 *
 * @author yangyedong
 * @ClassName SmsCode
 * @Description
 * @date 2024年1月11日
 */
public enum SmsCode {

    //公共
    SUCCESS(1000000, "成功"),
    FAILURE(5000001, "系统错误"),
    PERM_CHECK_FAIL(5200000, "权限校验失败"),
    PARAMETER_CHECK_FAIL(5100000, "参数校验失败"),
    RECEIVER_OVER(5232002, "接收者数量超过限制"),
    PHONE_FORMAT_ERROR(1000003, "发送的手机号码格式错误"),
    SERVICEID_OVER(1000005, "serviceId超过预定义"),
    TEXT_ILLEGAL(1000006, "请对文本进行审核，勿传播不良信息"),
    BLACKLIST(1000007, "该业务不在黑名单列表"),
    AUTHORITY_MISMATCH(1000008, "用户业务权限不匹配"),
    SIGNATURE_ERROR(1000009, "该签名未报备"),
    DATABASE_AUTHORITY_MISS(1000011, "数据库无用户业务权限"),
    PARAMETER_ERROR(1000013, "参数错误"),
    PHONE_OVER(1000014, "手机号码超过限流"),
    SERVICE_OVER(1000015, "业务方超过限流"),
    TD_MISS(1000016, "营销短信缺少退订内容"),
    TOKEN_AUTHORITY_MISS(5000002, "Token权限不足"),
    TOKEN_OUTTIME(401, "Token过期"),
    SERVICE_ERROR(300, "内部服务错误"),
    ;
    private int code;
    private String msg;

    private SmsCode(int errorCode, String errorMsg) {
        code = errorCode;
        msg = errorMsg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
